package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="ZFZB_LJ"
 *     
*/
public class ZfzbLj implements Serializable {

    /** identifier field */
    private String ljbh;

    /** persistent field */
    private String nd;

    /** persistent field */
    private String zffsDm;

    /** persistent field */
    private String yszbbh;

    /** nullable persistent field */
    private String xmbh;

    /** persistent field */
    private BigDecimal je;

    /** persistent field */
    private BigDecimal jyje;

    /** persistent field */
    private String dwbh;
    
    private BigDecimal hwfwje;

    /** nullable persistent field */
    private String zt1;

    /** nullable persistent field */
    private String zt2;

    /** full constructor */
    public ZfzbLj(String ljbh, String nd, String zffsDm, String yszbbh, String xmbh, BigDecimal je, BigDecimal jyje, String dwbh, String zt1, String zt2) {
        this.ljbh = ljbh;
        this.nd = nd;
        this.zffsDm = zffsDm;
        this.yszbbh = yszbbh;
        this.xmbh = xmbh;
        this.je = je;
        this.jyje = jyje;
        this.dwbh = dwbh;
        this.zt1 = zt1;
        this.zt2 = zt2;
    }

    /** default constructor */
    public ZfzbLj() {
    }

    /** minimal constructor */
    public ZfzbLj(String ljbh, String nd, String zffsDm, String yszbbh, BigDecimal je, BigDecimal jyje, String dwbh) {
        this.ljbh = ljbh;
        this.nd = nd;
        this.zffsDm = zffsDm;
        this.yszbbh = yszbbh;
        this.je = je;
        this.jyje = jyje;
        this.dwbh = dwbh;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="LJBH"
     *         
     */
    public String getLjbh() {
        return this.ljbh;
    }

    public void setLjbh(String ljbh) {
        this.ljbh = ljbh;
    }

    /** 
     *            @hibernate.property
     *             column="ND"
     *             length="4"
     *             not-null="true"
     *         
     */
    public String getNd() {
        return this.nd;
    }

    public void setNd(String nd) {
        this.nd = nd;
    }

    /** 
     *            @hibernate.property
     *             column="ZFFS_DM"
     *             length="2"
     *             not-null="true"
     *         
     */
    public String getZffsDm() {
        return this.zffsDm;
    }

    public void setZffsDm(String zffsDm) {
        this.zffsDm = zffsDm;
    }

    /** 
     *            @hibernate.property
     *             column="YSZBBH"
     *             length="40"
     *             not-null="true"
     *         
     */
    public String getYszbbh() {
        return this.yszbbh;
    }

    public void setYszbbh(String yszbbh) {
        this.yszbbh = yszbbh;
    }

    /** 
     *            @hibernate.property
     *             column="XMBH"
     *             length="50"
     *         
     */
    public String getXmbh() {
        return this.xmbh;
    }

    public void setXmbh(String xmbh) {
        this.xmbh = xmbh;
    }

    /** 
     *            @hibernate.property
     *             column="JE"
     *             length="16"
     *             not-null="true"
     *         
     */
    public BigDecimal getJe() {
        return this.je;
    }

    public void setJe(BigDecimal je) {
        this.je = je;
    }

    /** 
     *            @hibernate.property
     *             column="JYJE"
     *             length="16"
     *             not-null="true"
     *         
     */
    public BigDecimal getJyje() {
        return this.jyje;
    }

    public void setJyje(BigDecimal jyje) {
        this.jyje = jyje;
    }

    /** 
     *            @hibernate.property
     *             column="DWBH"
     *             length="50"
     *             not-null="true"
     *         
     */
    public String getDwbh() {
        return this.dwbh;
    }

    public void setDwbh(String dwbh) {
        this.dwbh = dwbh;
    }

    /** 
     *            @hibernate.property
     *             column="ZT1"
     *             length="50"
     *         
     */
    public String getZt1() {
        return this.zt1;
    }

    public void setZt1(String zt1) {
        this.zt1 = zt1;
    }

    /** 
     *            @hibernate.property
     *             column="ZT2"
     *             length="50"
     *         
     */
    public String getZt2() {
        return this.zt2;
    }

    public void setZt2(String zt2) {
        this.zt2 = zt2;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("ljbh", getLjbh())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof ZfzbLj) ) return false;
        ZfzbLj castOther = (ZfzbLj) other;
        return new EqualsBuilder()
            .append(this.getLjbh(), castOther.getLjbh())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getLjbh())
            .toHashCode();
    }

	public BigDecimal getHwfwje() {
		return hwfwje;
	}

	public void setHwfwje(BigDecimal hwfwje) {
		this.hwfwje = hwfwje;
	}


}
